package de2.cau2;

public abstract class ArtObject {
protected Artist artist;
protected int year;
protected String title;
protected String description;
public ArtObject(Artist artist, int year, String title, String description) {
	this.artist = artist;
	this.year = year;
	this.title = title;
	this.description = description;
}
public boolean thisArtist(Artist that){
	return this.artist.equals(that);
}
public boolean sameKind(ArtObject obj){
	if ((this.title.equals(obj.title)) && (this.description.equals(obj.description)) && (this.year == obj.year) )
		return true;
	return false;
}
public boolean geArtByYear(int thatYear){
	return this.year == thatYear;
}
public abstract double consumeMoneyPerMonth();
}
